begintalkscript;
variables;
 
begintalknode 1;
 state = -1;
 
nextstate = 1;
 question = "Sikitho";
 text1 = "There is a mage standing here. He seems to be in a sort of meditative state when he notices you.";
 text2 = "_Hello there. I'm Sikitho. This conversation will be terminated if you don't have a pass._";
 text5 = "Sikitho is playing with some sparkly magic stuff when he notices you again. _Do you have a pass?_";
 action = INTRO;
 
begintalknode 2;
 state = 1;
 nextstate = -1;
 question = "I do not have a pass.";
 text1 = "Sikitho closes his eyes. The conversation is terminated.";
 action = END_TALK;
 
begintalknode 3;
 state = 1;
 nextstate = -1;
 condition = (get_flag(0,22) == 0);
 question = "I have a pass.";
 text1 = "Because you don't have a pass, Sikitho glares at you and closes his eyes. The conversation is terminated.";
  action = END_TALK;
 
begintalknode 4;
 state = 1;
 
nextstate = -1;
 condition = (get_flag(0,22) == 1);
 question = "I have a pass.";
 text1 = "When you show him the pass, he orders his gatekeeper guards to open the gates. _Come in. I think we better talk right now._";
 action = END_TALK;
 code = set_terrain(15,6,30);
 
set_terrain(16,6,30);
  
set_terrain(17,6,30);
 
set_creature_memory_cell(8,3,5);
 
set_flag(0,22,3);
 break;
 
begintalknode 5;
 state = -1;
 nextstate = 2;
 question = "Sikitho";
 text1 = "Sikitho seems much more alert now that he has let you in here. He stands up and motions his guards away.";
 text2 = "_Sit down. There is something I need to tell you._";
 text5 = "Sikitho is playing with some sparkly magic stuff when he notices you. _Do you need anything?_";
 action = INTRO;
 
begintalknode 6;
 state = 2;
 nextstate = 3;
 condition = (get_flag(0,22) == 3);
  question = "So what is it you want to say?";
 text1 = "Sikitho sighs. _We made a mistake. A really bad mistake. It all happened almost a year ago. When this valley was discovered, we were the first to come._";
 text2 = "_What I mean by we is me, a few guards, and two other wizards. The first thing me and the other wizards discovered was this stone circle. The guards found out how great a place this would be to mine._";
 
text3 = "_Soon word broke out that this valley was rich in ore, and many people came. We built this wall around the stone circle so that the idiots wouldn't come over here._";
 
text4 = "_In the middle of the stone circle was something strange. There was magic floating around. We experimented with it and accidentally opened up a portal._";
 
text5 = "_Magic scans indicated that there was an alternate dimension through that portal._";
 
begintalknode 7;
 state = 3;
 nextstate = 2;
 question = "So was that the dark dimension we were in?";
 
text1 = "_No. It was, in fact, an empty dimension. Well, almost empty...it had a similar stone circle. Anyway, we were very interested so we..._ Sikitho thinks for a moment.";
 
text2 = "_Actually, I bet you are mercenaries so you don't need to know anything other than the simple stuff._";
 
text3 = "_Anyway, well we caused a massive implosion in that dimension. The force from that somehow opened up rifts in this dimension._";
 
text4 = "_How it happened was so complicated I barely get it. These rifts went to a dimension so completly close to us I'm surprised that they haven't appeared before._";
 
text5 = "_This dimension is in danger. We need to destroy that 'dark' version before it is too late._";
 code = set_flag(0,22,4);
 break;
 
begintalknode 8;
 state = 2;
 nextstate = -1;
 condition = ((get_flag(0,22) == 4) && (get_flag(2,10) == 0));
 question = "I'm guessing you want us to do something.";
 text1 = "_Yes, I want you to do something, but it is also something you must do. You must destroy the dark dimension._";
 
text2 = "_The fate of the world is on your hands, don't screw it up! Now, lets talk some more about your mission._";
 code = set_flag(0,22,5);
 set_flag(2,10,1);
 
toggle_quest(2,1);
  break;
 
begintalknode 9;
 state = 2;
 
nextstate = 4;
 condition = ((get_flag(2,10) == 1) && (get_flag(2,11) == 0));
 question = "So how can I destoy the dark place?";
 text1 = "_There is already something on you that will come off to cause the dimension to implode._";
 
text2 = "_Go deep into their layer and find their queen. Once you do, the object I placed on you will go right into the queen._";
 
text3 = "_Then choose a method of killing it. After that, run._";
 
code = set_flag(2,11,1);
 break;
 
begintalknode 10;
 state = 4;
 
nextstate = -1;
 question = "How do you know what to do?";
 
text1 = "_A combination of scrying, magic probes, thinking the obvious, and some other things I forgot._";
 
begintalknode 11;
 state = 2;
 
nextstate = -1;
 condition = ((get_flag(2,10) == 1) && (get_flag(2,12) == 0));
 question = "How exactly can I get to where I need to go?";
 text1 = "_The captain should have an orb that can activate instable portals to make them stable._";
 code = set_flag(2,12,1);
 break;
 